Contents | Index | < Browse | Browse >

LETTERcerrULETTER An ostream object, which writes to the standard error file.

Overview
#include <iostream.h>

cerr << x;

<any type> x; // Any type, which can be used with ostream::operator<<

Portability
AT&T Release 2 streams library

Description
At startup, cerr is initialized with the standard output stream as AmigaDOS does not differ between the standard output and the standard error output stream. Normally this is the CLI's console the program was started from.

See also
cout , clog

Example

#include <iostream.h>

void main()
{
cerr << "The program <unknown> was unexpectedly terminated "
"with the error message <unknown>" << endl;
}